<?php 
// RANKS:
// Rank 0 is master access
// Rank 1 is user access
// Rank 2 is viewer access

// CHECK THE SESSION USERID


// IF (RANK IS 0){
	$frank = $_SESSION['frank'];
	switch ($frank) {
    case 0:
  
?>


<div data-role="navbar" data-iconpos="top">
            <ul>
                <li> <a href="home.php" data-transition="fade" data-theme="" data-icon="home">
                        Home
                    </a></li>
                <li>
                    <a href="view.php?time=<?php echo time();?>" data-transition="fade" data-theme="" data-icon="search">
                        View
                    </a>
                </li>
                <li>
                   <a href="control.php?time=<?php echo time();?>" data-transition="fade" data-theme="" data-icon="grid">
                        Admin
                    </a>
                </li>
              <li>  <a href="profile.php" data-icon="gear">Profile</a></li>
                <li>
                    <a href="logout.php" data-transition="fade" data-theme="" data-icon="delete">
                        Logout
                    </a>
                </li>
            </ul>
        </div>
        <?php 

 break;
    case 1:
       
?>
<div data-role="navbar" data-iconpos="top">
            <ul>
                <li> <a href="home.php" data-transition="fade" data-theme="" data-icon="home">
                        Home
                    </a></li>
                <li>
                    <a href="view.php?time=<?php echo time();?>" data-transition="fade" data-theme="" data-icon="search">
                        View
                    </a>
                </li>
                <li>  <a href="profile.php" data-icon="gear">Profile</a></li>
                <li>
                    <a href="logout.php" data-transition="fade" data-theme="" data-icon="delete">
                        Logout
                    </a>
                </li>
            </ul>
        </div>


<?php 
 break;
    case 2:
?>
<div data-role="navbar" data-iconpos="top">
            <ul>
                
                <li>
                    <a href="view.php?time=<?php echo time();?>" data-transition="fade" data-theme="" data-icon="search">
                        View
                    </a>
                </li>
                <li>  <a href="profile.php" data-icon="gear">Profile</a></li>
                <li>
                    <a href="logout.php" data-transition="fade" data-theme="" data-icon="delete">
                        Logout
                    </a>
                </li>
            </ul>
        </div>
		<?php 
 break;
	}
?>